package main
/*
#include <stdlib.h >
 */
import "C"
import (
	"fmt"
	"unsafe"
)

func Random() int{
	return int(C.random())
}
func Seed(i int){
	C.srandom(C.uint(i))
}
func main(){
	Seed(100)
	fmt.Println("random:",Random())

	var gostr string ="adf"
	cstr:=C.CString(gostr)
	defer  C.free(unsafe.Pointer(cstr))
}

